package com.example.module_happy

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.RoundedCorners

@BindingAdapter("url")
fun loadUrl(imageView: ImageView,url:String?){
    Glide.with(imageView)
        .load(url)
        .circleCrop()
        .into(imageView)
}
@BindingAdapter("good")
fun image(imageView: ImageView,url:String?){
    Glide.with(imageView)
        .load(url)
        .transform(RoundedCorners(15))
        .into(imageView)
}